package org.gy.demo;

public class Student {
    String name;
    double chinese;
    double math;

    public void printTotalScore(){
        System.out.println(name + "同学各科总分：" + (chinese + math));
    }

    public void printAverageScore(){
        System.out.println(name + "同学的各科平均分：" + (chinese + math) / 2.0);
    }
}
